package com.yopinclub.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.yopinclub.R;
import com.yopinclub.YopinClubAvtivity;

public class HomeActivity extends YopinClubAvtivity {

	Button	mLoginButton;
	Button	mJoinButton;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_home);
		setBackgroundResource(R.drawable.promo_background);
		setNoTitleBar(true);

		mLoginButton = (Button) findViewById(R.id.btn_login);
		mLoginButton.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(HomeActivity.this, LoginActivity.class);
				startActivity(intent);
			}
		});
		mJoinButton = (Button) findViewById(R.id.btn_join);
		mJoinButton.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(HomeActivity.this, JoinActivity.class);
				startActivity(intent);
			}
		});
	}
}
